package modules;

import java.io.File;

public class FileListener extends Thread {

	File file;
	long lastModified;
	
	
	public FileListener(File f)
	{
		this.file =f;
		lastModified = f.lastModified();
	}
	
	
	public void run()
	{
		while(true)
			if(file.lastModified() != lastModified)
			{
				lastModified = file.lastModified();
				
			}
			
	}
	
}
